using System.Text.Json.Serialization;

namespace Crux.Core.Payloads;
/// <summary>
/// IPayload
/// </summary>
public interface IPayload
{
    /// <summary>
    /// 结果
    /// </summary>
    [JsonPropertyName("result")]
    Result Result { get; }
    /// <summary>
    /// 详细描述
    /// </summary>
    [JsonPropertyName("message")]
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
    string? Message { get; }
}